package com.ruoyi.demooo1.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.alibaba.excel.annotation.format.DateTimeFormat;

import java.util.Date;

/**
 * 每日一卦对象 one_day_divination
 *
 * @author ted
 * @date 2023-08-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("one_day_divination")
public class OneDayDivination extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 求卦类型
     */
    @Excel(name = "求卦类型")
    private Integer type;

    /**
     * 第一次
     */
    @Excel(name = "第一次")
    private String oneD;

    /**
     * 第二次
     */
    @Excel(name = "第二次")
    private String twoD;

    /**
     * 第三次
     */
    @Excel(name = "第三次")
    private String threeD;

    /**
     * 第四次
     */
    @Excel(name = "第四次")
    private String fourD;

    /**
     * 第五次
     */
    @Excel(name = "第五次")
    private String fiveD;

    /**
     * 第六次
     */
    @Excel(name = "第六次")
    private String sixD;

    /**
     * 解卦批注
     */
    @Excel(name = "解卦批注")
    private String note;

    /**
     * 原卦
     */
    @Excel(name = "原卦")
    private String oldD;

    /**
     * 成卦
     */
    @Excel(name = "成卦")
    private String newD;

    /**
     * 爻词
     */
    @Excel(name = "爻词")
    private String wordsD;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String mark;
    private String nickName;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    private String updateBy;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
